<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/4
  Time: 22:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>面向教师的教学管理系统</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/jquery-easyui-1.5.4.5/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/jquery-easyui-1.5.4.5/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/jquery-easyui-1.5.4.5/demo/demo.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-easyui-1.5.4.5/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-easyui-1.5.4.5/jquery.easyui.min.js"></script>
</head>
<body style="padding: 0px;">
<div id="cc" class="easyui-layout" style="width:100%;height:100%;">
    <div data-options="region:'north',collapsible:false,noheader:true" style="height:80px;">
        <div class="mainTitle" style="font-family: 'Microsoft YaHei UI';font-weight: bolder;font-size: 30px;text-align: center;padding-top: 10px;">面向教师的教学管理系统</div>
        <div style="margin-top: 10px;text-align: right;font-size: 15px;"><span style="margin-right: 20px;">你好,${sessionScope.userName}</span><span style="margin-right: 20px;"><a href="${pageContext.request.contextPath}/user/logout">退出系统</a></span></div>
    </div>
    <div data-options="region:'south',collapsible:false,noheader:true" style="height:40px;text-align: center;padding-top: 5px;padding-bottom: 5px;">
        &copy; 2018, uestc<br>
        如你在使用网站的过程中遇到任何问题，请联系qq1264854245
    </div>
    <div data-options="region:'west',title:'功能菜单',split:true" style="width:200px;">
        <ul id="menu" class="easyui-tree">
            <li state="closed">
                <span>课程管理</span>
                <ul>
                    <li data-options=" attributes:{url:'../course/getCourseInfoView'} "><span>课程信息</span></li>
                </ul>
            </li>
            <li state="closed">
                <span>学生管理</span>
                <ul>
                </ul>
            </li>
            <li state="closed">
                <span>考勤管理</span>
                <ul>
                </ul>
            </li>
            <li state="closed">
                <span>成绩管理</span>
                <ul>
                </ul>
            </li>
            <li data-options=" attributes:{url:'getUpdatePwdView'} "><span>修改密码</span></li>
        </ul>
    </div>
    <div data-options="region:'center',noheader:true" style="background:#eee;">
        <div id="tt" class="easyui-tabs" style="width:100%;height:100%;">
            <div title="首页" closable="true" style="padding:20px;display:none;text-align: center;">
                欢迎您进入教学管理系统！
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $('#menu').tree({
            onClick: function (node) {
                if ($('#menu').tree('isLeaf', node)) {
                    if ($('#tt').tabs('exists', node.text)) {
                        $('#tt').tabs('select', node.text);
                    } else {
                        $('#tt').tabs('add', {
                            title:node.text,
                            closable:true,
                            href:node.attributes.url
                        });
                    }
                }
            }
        });
    });
</script>
</body>
</html>
